{{#extends @html/layouts/layout-standart.html}}

{{:title}}{{tdi_title}}{{/:title}}

{{:init}}
	{{@community.html:init}}
	{{!connect "screen/content-issues.css" media="screen" charset="utf-8"}}
	{{!connect "screen/widgets-default.css" media="screen" charset="utf-8"}} 
{{/:init}}

{{:content_class}}content-issues{{/:content_class}}

{{:layout_right}}
	{{tags}}
{{/:layout_right}}

{{:issue_view}}showissue{{/:issue_view}}

{{:layout_main}}
	<h2 class="title-">{{tdi_title}}</h2>
	<ul class="years-">
		{{!for years do=@:year}}
		{{:year}}
		<li>{{?*items}}<a href="#{{*year_group}}">{{*year_group}}</a>{{?:}}{{*year_group}}{{/?}}</li>
		{{/:year}}
	</ul>
	{{!for years do=@:yearblock}}{{:yearblock}}
		{{?*items}}
			<h3 class="year-"><a name="{{*year_group}}" class="pa"></a>{{*year_group}}</h3>
			<ul class="list-">
				{{!for *items do=@:item}}
				{{:item}}
				<li class="item-">
					<h4 class="name-"><a href="{{/}}{{community.url}}/{{*post.oid}}/{{@:issue_view}}">{{*post.issue_number}}. {{*post.issue_name}} ({{tdi_title}})</a></h4> <span class="date-">{{*post.publish_date|date "%d %M %Y"}}</span>
					<div class="content desc-"><p>{{*post.issue_descr | safe}}</p></div>
				</li>
				{{/:item}}
			</ul>
		{{/?}}
	{{/:yearblock}}
{{/:layout_main}}
